package top.yzhao.trackdatasystem.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * User: zhaoyang
 * Date: 2020/3/13
 * Time: 14:10
 * Description: No Description
 */
public class DateUtilsMy {

    /**
     * 获得系统当前时间 yyyy-MM-dd HH:mm:ss
     * @return
     */
    public static String getCurrentTiem() {
        String currentTime = "";
        Date d = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        currentTime = sdf.format(d);
        return currentTime;
    }
}
